package com.eurake.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eurake.seckill.pojo.User;
import com.eurake.seckill.vo.LoginVo;
import com.eurake.seckill.vo.RespBean;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author chen
 * @since 2024-11-21
 */
public interface IUserService extends IService<User> {

    RespBean doLogin(LoginVo loginVo, HttpServletRequest request, HttpServletResponse response);

    User getUserByToken(String token, HttpServletRequest request, HttpServletResponse response);

    RespBean updatePassword(String token, String newPassword, HttpServletRequest request, HttpServletResponse response);
}
